<form id="pagerForm" method="post" action="<?php echo Yii::app()->request->requestUri?>">
  <input type="hidden" name="status" value="${param.status}">
  <input type="hidden" name="pageNum" value="1" />
  <input type="hidden" name="numPerPage" value="${model.numPerPage}" />
</form>
<div class="page">
<div class="panelBar">
		<ul class="toolBar">
			<li><a class="delete" href="/comments/delete/id/{id}" target="navTabTodo" title="确定要删除吗?"><span>删除</span></a></li>
		</ul>
	</div>
  <table class="table" layouth="90">
    <thead>
      <tr>
        <th width="100">查看详情</th>
        <th>评论文章</th>
        <th>姓名</th>
        <th>Email</th>
        <th>blog</th>
        <th>内容</th>
        <th>留言IP</th>
        <th>留言时间</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($rows as $k => $row):?>
      <tr target="id" rel="<?php echo $row->id?>">
        <td><a href="/comments/view/id/<?php echo $row->id?>" target="dialog">查看详情</a></td>
        <td><a href="http://ixuepin.us/article/<?php echo $row->article->url_key?>.html" target="_blank"><?php echo mb_substr($row->article->title, 0,16,'UTF-8')?></a></td>
        <td><?php echo $row->author?></td>
        <td><a href="mailto:<?php echo $row->email?>"><?php echo $row->email?></a></td>
        <td><?php echo $row->blog_url?></td>
        <td><?php echo mb_substr(CHtml::encode($row->content), 0,50,'UTF-8')?></td>
        <td><?php echo $row->ip?></td>
        <td><?php echo $row->create_time?></td>
      </tr>
      <?php endforeach;?>
    </tbody>
  </table>
  <div class="panelBar">
    <div class="pages"> <span>共<?php echo $pages->itemCount?>条</span> </div>
    <div class="pagination" targetType="navTab" totalCount="<?php echo $pages->itemCount?>" numPerPage="<?php echo $pages->pageSize?>" pageNumShown="10" currentPage="<?php echo $pages->currentPage + 1?>"></div>
  </div>
</div>
